package com.spring.sd.aop;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication(scanBasePackages = "com.spring.sd.aop")
public class AopApplication {

    public static void main(String[] args) {

        ConfigurableApplicationContext context = SpringApplication.run(AopApplication.class, args);


        MeControllerV2 b = context.getBean(MeControllerV2.class);

        try{

            b.test();
        }finally {

            context.close();
        }

    }


}
